$(document).ready(function(){
	$("#updateuser").validate({             
      		rules: {
      			menouprav: {
      				required: true,
      				minlength: 2,
					maxlength: 20
      			},
				popisuprav: {
					maxlength: 50,
      			}
      		},
      		messages: {
      			menouprav: {
      				required: "Zadajte meno.",
      				minlength: "Meno musi mať min. 2 znaky.",
					maxlength: "Meno musi mať max. 20 znakov."
      			},
				popisuprav: {
					maxlength: "Meno musi mať max. 50 znakov."
      			},
      			agree: ""
		}
	});
});